#pragma once
#include <iostream>
#include "Sock.h"

namespace Sock
{
    class SNETWORK_API  Session
    {
    public:
        static Session *instance();
	    Session();
        std::string session_id();
        void session_id(std::string s_id);
        bool session_start();
        bool SetSession(std::string name, std::string value);
        std::string GetSession(std::string name);
        std::string execute();
        
    private:    
        std::string  m_sid;
        static Session* m_instance;    
        class CGarbo {public: ~CGarbo(){if (Session::m_instance) delete Session::m_instance;}};
        static CGarbo Garbo;	
    };
}
